//
// Created by zhuyijun on 2021/9/17.
//

#include <iostream>
#include <string>
using namespace std;

int main() {

    string empty;
    string small = "bit";
    string larger = "Elephants are a girl's best friend";
    cout <<"Sizes:\n";
    cout <<"\tempty: "<<empty.size()<<endl;
    cout <<"\tsmall: "<<small.size()<<endl;
    cout <<"\tlarger: "<<larger.size()<<endl;
    cout <<"\tCapacities: "<<endl;
    cout <<"\tempty: "<<empty.capacity()<<endl;
    cout <<"\tsmall: "<<small.capacity()<<endl;
    cout <<"\tlarger: "<<larger.capacity()<<endl;
    empty.resize(50);
    cout<<"Capacity after empty.reserve(50): "<<empty.capacity()<<endl;
    return 0;
}

